package org.runtimedao.sampleproject;

import org.runtimedao.annotation.DAOEntity;
import org.runtimedao.annotation.Query;
import org.runtimedao.dao.DAO;

@DAOEntity(TestVO.class)
public interface TestDAO extends DAO<TestVO> {

	@Query("FROM TestVO t WHERE t.login = ?")
	TestVO findByLogin(String login);

	@Query("FROM TestVO t WHERE t.login = ? AND t.password = ?")
	TestVO findByLoginAndPassword(String login, String password);

}